package io.bdmc.modules.bss.mapper;

import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.SmkShop;
import io.bdmc.modules.bss.model.LabelValue;
import io.bdmc.modules.bss.model.ShopLocation;
import io.bdmc.modules.bss.model.ShopParam;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
/**
 * <p>
 *  Mapper 
 * </p>
 *
 * @author huanglu
 * @since 2019-01-21
 */
public interface SmkShopMapper extends BaseMapper<SmkShop> {

    MyPage<SmkShop> mySelectPage(@Param("myPage") MyPage<SmkShop> myPage,  @Param("sp") ShopParam shopParam);

    List<LabelValue> mySelectByDept(@Param("myPage") MyPage<SmkShop> myPage,@Param("sp") ShopParam shopParam);

    List<ShopLocation> selectLocationByDepId(@Param("deptId") Long deptId);

    Long countByDepId(@Param("deptId") Long deptId);

    MyPage<ShopLocation> getByDepId(@Param("myPage") MyPage<SmkShop> myPage,   @Param("sp") ShopParam shopParam);
    
    List<Map<String,Object>> getShopLatLng(@Param("deptId") Long deptId);
}
